package com.example.day08;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class StreamTest {
    public static void main(String[] args) throws IOException {
        FileInputStream fileInputStream = new FileInputStream("D:/test.txt");
        byte[] bytes = new byte[3];
        fileInputStream.read(bytes);
        for (byte aByte : bytes) {
            System.out.println(aByte);
        }


//        FileOutputStream fileOutputStream = new FileOutputStream("D:/demo.txt");
    }
}